package com.cloud.pole.feign;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.cloud.pole.api.merchant.ShopMerchantInfoApi;
import com.cloud.pole.common.constant.ApiConstant;
import com.cloud.pole.common.msg.ApiRestResponse;

/*
*2019年8月5日
*cloud-shop
*author:frank-chen
*/
@FeignClient(value = ApiConstant.SHOP_MERCHANT_SERVICE_ID)
public interface IMerchantInfoService {

	@RequestMapping(value=ApiConstant.SHOP_MERCHANT_ADD_MERCHANT, method = RequestMethod.POST)
	public ApiRestResponse<Integer> addMerchant(@RequestBody ShopMerchantInfoApi infoApi);	
	 
	@RequestMapping(value=ApiConstant.SHOP_MERCHANT_GET_INFOBYID, method = RequestMethod.GET)
	public ApiRestResponse<ShopMerchantInfoApi> getInfoById(
			@RequestParam(name="mobileArea", defaultValue = "") Integer merchantId);	 
}
